package com.m1905hd.user.service;

import com.m1905hd.user.entity.User;

import java.util.Set;

/**
 * @author weiwei.huang
 * @email ihuangweiwei@163.com
 * @date 15/3/31
 */
public interface UserService extends BaseService<User> {


    boolean changePassword(int id, String newPassword);

    User findByUserName(String name);

    Set<String> findRoles(String userName);

    Set<String> findPermissions(String userName);


    boolean changeStatus(int id, int available);

    boolean resetPassword(int id, String password);

    boolean updateRoles(int id, String roleIds);
}
